﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Tintuc_13.ascx.cs" Inherits="Controls_Tintuc_1" %>

<link href="../css/stylesheet.css" rel="stylesheet" type="text/css" />

<style type="text/css">
    .style1
    {
        height: 13px;
        padding:10px;
        margin:10px;
    }
</style>

<table border="0" cellpadding="0" cellspacing="0">
<!-- categories //-->
          <tbody><tr>
            <td>
<table class="infoBoxHeading2_table" width="100%" border="0" cellpadding="0" cellspacing="0">
  <tbody>
  <tr>
    <td class="infoBoxHeading2_l" style="width: 5px; height: 39px;">
        <img src="images/infoBoxHeading2_tl.gif" alt="" width="4" border="0" 
            height="5"></td>
    <td class="infoBoxHeading2_td" style="height: 30px">
    Tin tức trong phòng</td>
    <td class="infoBoxHeading2_r" style="width: 5px; height: 39px;">
        <img src="images/infoBoxHeading2_tr.gif" alt="" width="4" border="0" 
            height="4"></td>
  </tr>
</tbody>
</table>

            </td>
          </tr>
<!-- categories_eof //-->

</tbody>
</table>
<table class="infoBox_table" width="100%" border="0" cellpadding="0" cellspacing="0" >
  <tbody>
  <tr>
    <td class="infoBox_td">
    <table class="infoBoxContents_table" width="100%" border="0" cellpadding="0" cellspacing="0">
  <tbody>
  <tr>
    <td class="boxText">
	<table border="0" cellpadding="0" cellspacing="0" class="infoBox>
	<tbody>
	    <tr>
            <td align="left" class="box_body box_body_td" style="width: 100%;">
            <br />   
            <asp:DataList ID="DataList2" runat="server" DataSourceID="SqlDataSource1" 
            DataKeyField="News_ID" Width="100%">
                <ItemTemplate>        
                    <table >
                        <tr>
                            <td width="150" rowspan="2">
                                    <a href='../Noidung.aspx?IDNew=<%#Eval("News_ID") %>'>
                                            <asp:Image ID="Image2" runat="server" 
                                        ImageUrl='<%# "~/images/Product/"+Eval("News_Image") %>' Width ="150" 
                                        Height ="100" CssClass="pic_tintuc"/>
                                    </a>
                            </td>
                            <td class="style1">
                                <asp:HyperLink ID="HyperLink1" runat="server" 
                                     CssClass="title" 
                                    Font-Bold="True" Font-Italic="False" 
                                    NavigateUrl='<%# Eval("News_ID", "../Noidung.aspx?IDNew={0}") %>'> 
                                    <%# Eval("News_Title") %>
                                    </asp:HyperLink>
                                <br />
                                <br />
                                <asp:Label ID="News_IntroLabel" runat="server" CssClass="content" 
                                    Text='<%# Eval("News_Intro") %>' />
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="margin-right: 20px; padding-right: 20px;">
                                <asp:HyperLink ID="xemthemss" runat="server" CssClass="xemthem" 
                                    Font-Bold="False" Font-Italic="False" 
                                    NavigateUrl='<%# Eval("News_ID", "../Noidung.aspx?IDNew={0}") %>'> 
                                    Xem thêm
                                    </asp:HyperLink>
                             </td>
                        </tr>
                    </table>
                    <hr />
                    
                </ItemTemplate>
            </asp:DataList>
                    <ul>
                    
                    <asp:DataList ID="dtlOthersNews" runat="server" DataSourceID="SqlDataSource2">
                        <ItemTemplate>
                            <table>
                                <tr>
                                    <td>
                                     <li class="bg_input">    
                                            <asp:HyperLink ID="xemthemss" runat="server" CssClass="xemthem" 
                                            Font-Bold="False" Font-Italic="False" 
                                            NavigateUrl='<%# Eval("News_ID", "../Noidung.aspx?IDNew={0}") %>'> 
                                              <asp:Image ID="Image1" runat="server" Height="10px" ImageUrl="~/images/infoBoxHeading2_td.gif" /> 
                                              <%# Eval("News_Title") %>
                                        </asp:HyperLink>
                                        </li>
                                    </td>
                                </tr>
                            </table>
                            
                        </ItemTemplate>
                    </asp:DataList>
                    
                    </ul>
                    <asp:HiddenField ID="tintuctrongtruong" runat="server" Value="13" />
                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                        
                    SelectCommand="SELECT TOP (5) News_ID, News_Status, News_Title, Cate_ID FROM News WHERE (News_Status = @News_Status) AND (Cate_ID = @Cate_ID) ORDER BY News_ID DESC">
                        <SelectParameters>
                            <asp:Parameter DefaultValue="true" Name="News_Status" Type="Boolean" />
                            <asp:ControlParameter ControlID="tintuctrongtruong" Name="Cate_ID" 
                                PropertyName="Value" Type="Int32" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                    
                    
                    SelectCommand="SELECT TOP (3) News_ID, News_Status, News_Title, News_Image, News_Hit, Cate_ID, News_CreateDate, News_Source, News_Intro FROM News WHERE (Cate_ID = @Cate_ID) AND (News_Status = @News_Status) ORDER BY News_ID DESC">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="tintuctrongtruong" Name="Cate_ID" 
                            PropertyName="Value" Type="Int32" />
                        <asp:Parameter DefaultValue="true" Name="News_Status" Type="Boolean" />
                    </SelectParameters>
                </asp:SqlDataSource>
         
            </td>
        </tr>
        </tbody>
	</table>
	</td>
  </tr>
</tbody></table>
</td>
  </tr>
</tbody></table>

    

